package org.example.demos.pattern.observer;

public class Test {
    public static void main(String[] args) {
        Subject subject = new Leader();
        subject.attach(new Observer1());
        subject.attach(new Observer2());
        subject.push(1);
    }
}
